<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let str = "%10861,43ilu,hugu,fu086";
        let num = "";
        for (i of str) {
            if (parseInt(i) >= 0) { //parseInt返回的是数字或者NAN,只要大于0,即使数字
                num += i;
            }
        }
        console.log(num); // 1086143086 会拼接所以的数字
    </script>
</body>

</html>